GtkPlacesSidebar: avoid a crash
authorMatthias Clasen <mclasen@redhat.com>
Thu, 19 Dec 2013 13:16:30 +0000 (08:16 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 19 Dec 2013 16:01:39 +0000 (11:01 -0500)
Be more careful when comparing uris during DND - they may
be NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=720264

gtk/gtkplacessidebar.c

index 675a756d9e656c5f9ef126d91fdcefe204bfdb90..979700fb9812b2d3d325a100332eb988d0c875fb 100644 (file)
@@ -1415,7 +1415,7 @@ compute_drop_position (GtkTreeView              *tree_view,
                           PLACES_SIDEBAR_COLUMN_URI, &uri,
                           -1);
 
-      if (strcmp (uri, "recent:///") == 0)
+      if (g_strcmp0 (uri, "recent:///") == 0)
         drop_possible = FALSE;
 
       g_free (uri);